home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-02
/
pas_all.zip
/
TI423.ASC
< prev
next >
Wrap
Text File
|
1992-08-12
|
2KB
|
67 lines
PRODUCT : TURBO PASCAL NUMBER : 423
VERSION : 4.0
OS : MS-DOS, PC-DOC
DATE : SEPTEMBER 20, 1988 PAGE : 1/1
TITLE : PATCH FOR ^KW BLOCK WRITE DISK FILE SIZE NOT
TRUNCATED BUG
This handout describes the patch needed in order for the Turbo
Pascal 4.0 editor to correctly block copy a portion of code out
of a source file and truncate the file's size on disk. The
following patch should be made to the TURBO.EXE file using the
DOS
1. Copy TURBO.EXE to a file called TURBO.TXT. (DEBUG will
not allow modifications to be made to an .EXE file.)
2. Load TURBO.TXT into DEBUG with the command:
DEBUG TURBO.TXT
3. At DEBUG'S "-" prompt, enter the command E CS:3FCD. Press
<Return>. This allows you to edit the code at address
CS:3FCD. The number 01. will appear. Type 3 next to it
and press <Return>. Enter W <Return> to write the patched
program to disk and Q <R
C:\TURBO>debug turbo.txt
-e CS:3FCD
29C9:3FCD 01.3
-w
Writing 1C248 bytes
-q
4. Rename TURBO.TXT to TU.EXE. (Use a name other than
TURBO.EXE so you can distinguish between the original and
corrected versions.)
DISCLAIMER: You have the right to use this technical information
subject to the terms of the No-Nonsense License Statement that
you received with the Borland product to which this information
pertains.